const state = {
  getlist:true,
  rcba:{},
  del:true,
  edit:true,
  add:true,
  todicom:true,
  detail:true,
  getdiseaselist:true,
  viewreport:true, //诊断报告
  cate:true,//类型列表,
  changetext:true,
  showlogin:false
}

const mutations = {
  SET_PAGE_RCBA: (state, parms) => {
    state.rcba=parms;
  },
  SET_SHOW_LOGIN: (state, status) => {
    state.showlogin=status;
  }
}

const actions = {
  setPageRcba({ commit }, parms) {
    commit('SET_PAGE_RCBA', parms)
  },
  setShowlogin({ commit }, status) {
    commit('SET_SHOW_LOGIN', status)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
